/**
 * 
 */
package mumu.android.app;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;

public class zLib_simservice extends Service
{
	// 必须实现的方法
	@Override
	public IBinder onBind(Intent arg0)
	{
		return null;
	}
	// Service被创建时回调该方法。
	@Override
	public void onCreate()
	{
		super.onCreate();
		Toast.makeText(getApplicationContext(), "service_create", 1000).show();
	}
	// Service被启动时回调该方法
	@Override
	public int onStartCommand(Intent intent, int flags, int startId)
	{
		Toast.makeText(getApplicationContext(), "Service is Started", 1000).show();
		return START_STICKY;
		
	}
	// Service被关闭之前回调。
	@Override
	public void onDestroy()
	{
		Toast.makeText(getApplicationContext(), "Service is Destroyed", 1000).show();
		super.onDestroy();
	}
}
